package com.code.model.vo.user;

import com.code.commons.model.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;

/**
 * 注册用户VO
 *
 * @author tangyifei
 * @since 2019年12月23日10:41:18
 */
@ApiModel("注册用户VO")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RegisterUserVO implements Model {

    private static final long serialVersionUID = -1534583697804700376L;

    @ApiModelProperty(value = "手机号", example = "150****0055")
    @NotBlank(message = "用户手机号不能为空")
    private String phone;

    @ApiModelProperty(value = "区号", example = "+86")
    private String areaNo;

    @ApiModelProperty(value = "验证码", example = "123456")
    private String authCode;

    @ApiModelProperty(value = "邀请码", example = "****")
    private String inviteCode;

    @ApiModelProperty(value = "密码", example = "$2a$10$vCmtWzK9kgeEIdfAKoADLuAzLVJ8ZB/Um0b3/9NUoirA/9bmAvxDK")
    @NotBlank(message = "用户密码（加密传输）不能为空")
    private String pwd;

    @ApiModelProperty(value = "旧密码", example = "$2a$10$vCmtWzK9kgeEIdfAKoADLuAzLVJ8ZB/Um0b3/9NUoirA/9bmAvxDK")
    private String oldPwd;

    @ApiModelProperty(value = "推荐人手机号", example = "150****0055")
    private String recommenderPhone;

    @ApiModelProperty(value = "用户USDT币种余额相关的版本号(钱包的版本号)", example = "0")
    private Integer usdtCoinBalanceVersion;

    @ApiModelProperty(value = "用户矿池相关的版本号(钱包的版本号)", example = "0")
    private Integer orePoolVersion;

}
